import axios from 'axios'
const request = axios.create({
  baseURL: process.env.VUE_APP_URL
  //   baseURL: "http://pcapi-xiaotuxian-front-devtest.itheima.net",
})
request.interceptors.request.use(
  config => {
    return config
  },
  error => {
    return Promise.reject(error)
  }
)
request.interceptors.response.use(
  res => {
    return res.data
  },
  error => {
    return Promise.reject(error)
  }
)
export default request
